package jym.tan.tmdb.bean.wrapper;

import java.io.Serializable;
import java.util.List;

import jym.tan.tmdb.bean.Base;
import jym.tan.tmdb.bean.Keyword;

import com.google.gson.annotations.SerializedName;

/**
 * The Class MovieKeywordWrapper. The Wrapper class which holds the 
 * {@link List} of {@link Keyword} and other information.
 * <p>
 * 	The properties are:
 * 	<ul>
 * 		<li>id</li>
 * 		<li>keywords</li>
 * 	</ul>
 * </p>	
 * @author Tanmoy
 */
public class MovieKeywordWrapper extends Base implements Serializable {

	private static final long serialVersionUID = 8735924260979823785L;

	@SerializedName("keywords")
	private List<Keyword> keywords;
	
	/**
	 * Default Constructor.
	 */
	public MovieKeywordWrapper() {
		
	}

	/**
	 * Gets the {@link List} of {@link Keyword}.
	 *
	 * @return 
	 * 		The keywords
	 */
	public List<Keyword> getKeywords() {
		return keywords;
	}

	/**
	 * Sets the {@link List} of {@link Keyword}.
	 *
	 * @param keywords 
	 * 		The new keywords
	 */
	public void setKeywords(List<Keyword> keywords) {
		this.keywords = keywords;
	}
	
	/* (non-Javadoc)
	 * @see jym.tan.tmdb.bean.Base#toString()
	 */
	@Override
	public String toString() {		
		StringBuilder builder = new StringBuilder();
		builder.append("{").
			append("id:").append(id).
			append(",").
			append("keywords:").append(keywords).
			append("}");
		return builder.toString();
	}
}
